package com.ItemsRent.model;
// default package

import com.ItemsRent.model.Customer;
import com.ItemsRent.model.ItemTable;
import java.sql.Timestamp;

import org.apache.struts2.json.annotations.JSON;


/**
 * OrderFrom entity. @author MyEclipse Persistence Tools
 */

public class OrderForm  implements java.io.Serializable {


    // Fields    

     private Integer orderId;
     private Customer customer;
     private ItemTable item;
     private Timestamp orderDate;
     private Integer orderStatus;
     private Integer orderPrice;
     private String isRead;
     private String evaluate;
     private String salerWords;
     private String customerWords;


    // Constructors

    /** default constructor */
    public OrderForm() {
    }

	/** minimal constructor */
    public OrderForm(Customer customer, ItemTable item, Integer orderPrice) {
        this.customer = customer;
        this.item = item;
        this.orderPrice = orderPrice;
        this.orderStatus=0;
        this.isRead="nn";
        this.evaluate="";
        this.salerWords="";
        this.customerWords="";
    }
    
    
    /** full constructor */
    public OrderForm(Customer customer, ItemTable item, Timestamp orderDate, Integer orderStatus, Integer orderPrice, String isRead, String evaluate, String salerWords, String customerWords) {
        this.customer = customer;
        this.item = item;
        this.orderDate = orderDate;
        this.orderStatus = orderStatus;
        this.orderPrice = orderPrice;
        this.isRead = isRead;
        this.evaluate = evaluate;
        this.salerWords = salerWords;
        this.customerWords = customerWords;
    }

   
    // Property accessors

    public Integer getOrderId() {
        return this.orderId;
    }
    
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    //@JSON(serialize=false)  //类里定义的成员变量，有get方法的，都会自动封装为JSON格式，如果不想封装某个成员变量，则在它的get方法上加@JSON(serialize=false)
    public Customer getCustomer() {
        return this.customer;
    }
    
    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    //@JSON(serialize=false)  
    public ItemTable getItem() {
        return this.item;
    }
    
    public void setItem(ItemTable item) {
        this.item = item;
    }

    public Timestamp getOrderDate() {
        return this.orderDate;
    }
    
    public void setOrderDate(Timestamp orderDate) {
        this.orderDate = orderDate;
    }

    public Integer getOrderStatus() {
        return this.orderStatus;
    }
    
    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getOrderPrice() {
        return this.orderPrice;
    }
    
    public void setOrderPrice(Integer orderPrice) {
        this.orderPrice = orderPrice;
    }

    public String getIsRead() {
        return this.isRead;
    }
    
    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getEvaluate() {
        return this.evaluate;
    }
    
    public void setEvaluate(String evaluate) {
        this.evaluate = evaluate;
    }

    public String getSalerWords() {
        return this.salerWords;
    }
    
    public void setSalerWords(String salerWords) {
        this.salerWords = salerWords;
    }

    public String getCustomerWords() {
        return this.customerWords;
    }
    
    public void setCustomerWords(String customerWords) {
        this.customerWords = customerWords;
    }
   
    @Override
    public String toString(){
    	return "订单号："+orderId+" "+customer.getCustomerName()+" "+item.getItemName()+" "+orderDate+" "+orderStatus+" "+orderPrice+" "+isRead+" "+evaluate+" "+salerWords+" "+customerWords;
    }







}